package com.zlp.oss;

import org.springframework.beans.factory.ObjectFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/12 14:10
 */

@SpringBootApplication
public class OssApp {
    /** Cache of singleton objects: bean name to bean instance. 一级缓存*/
    private final Map<String, Object> singletonObjects = new ConcurrentHashMap<>(256);
    /** Cache of singleton factories: bean name to ObjectFactory. 三级缓存*/
    private final Map<String, ObjectFactory<?>> singletonFactories = new HashMap<>(16);
    /** Cache of early singleton objects: bean name to bean instance. 二级缓存*/
    private final Map<String, Object> earlySingletonObjects = new ConcurrentHashMap<>(16);
    public static void main(String[] args) {
        SpringApplication.run(OssApp.class,args);
    }
}
